php preg_replace whitespace

59

php preg_replace whitespace -

$id = "aa aa";
echo $id;
preg_replace('/\s+/', '_', $id);
echo $id;

Comments

Submit
0 Comments